<!-- 角色权限详情添加 -->
<template>
	<div id="addrolepermisdetailsshow">
		<el-dialog title="角色权限详情添加" :visible.sync="dialogFormVisible" append-to-body>
			<el-form :model="form" size="mini">
				<el-form-item label="权限编号" :label-width="formLabelWidth">
					<el-input v-model="form.Id" autocomplete="off"></el-input>
				</el-form-item>
				<el-form-item label="权限文本" :label-width="formLabelWidth">
					<el-input v-model="form.permistitle" autocomplete="off"></el-input>
				</el-form-item>
				<el-form-item label="链接" :label-width="formLabelWidth">
					<el-input v-model="form.href" autocomplete="off"></el-input>
				</el-form-item>
				<el-form-item label="所属父菜单" :label-width="formLabelWidth">
					<el-select v-model="form.parent" placeholder="请选择类型">
						<el-option :label="parentObj.permistitle" :value="parentObj.id" 
						v-for=" parentObj in form.parentlist" :key="form.parentlist">
						</el-option>
					</el-select>
				</el-form-item>
				<el-form-item label="权限名字" :label-width="formLabelWidth">
					<el-input v-model="form.permisname" autocomplete="off"></el-input>
				</el-form-item>
				<el-form-item label="权限类型" :label-width="formLabelWidth">
					<el-select v-model="form.permistype" placeholder="请选择类型">
						<el-option label="区域一" value="shanghai"></el-option>
					</el-select>
				</el-form-item>
				<el-form-item label="描述" :label-width="formLabelWidth">
					<el-input v-model="form.description" autocomplete="off"></el-input>
				</el-form-item>
			</el-form>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisible = false">取 消</el-button>
				<el-button type="primary" @click="add">确  定</el-button>
			</div>
		</el-dialog>
	</div>
</template>
<script>
	export default {
		data() {
			return {
				dialogFormVisible: this.isvisble,
				form: {
					Id: "",
					permistitle: "",
					href: "",
					parent:"",
					parentlist: [{
						"id": "1",
						"permistitle": "父菜单1"
					}],
					permisname: "",
					permistype: [],
					description: ""
				},
				formLabelWidth: '120px'
			};
		},
		props: ["isvisble"],
		methods: {
			detailshow(s) {
				this.dialogFormVisible = s;
			},
			add() {
				this.dialogFormVisible = false;
			}
		}
	};
</script>

<style scoped>
</style>